package spring.spring_blog.pojo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class updateBlogReq {
    @NotNull(message = "博客id不能为空")
    Integer id;

    @NotNull(message = "用户不能为空")
    Integer userId;

    @NotNull(message = "标题不能为空")
    String title;

    @NotNull(message = "内容不能为空")
    String content;

}
